#ifndef PM_PANEL_SUMARY_H_INCLUDED
#define PM_PANEL_SUMARY_H_INCLUDED

#include "panelsumarygui.h"
#include "main.h"
#include "pm/workrequest.h"
#include "pm/cost.h"
#include "pm/task.h"

class PanelSumary : public PanelSumaryGui
{
public:
	PanelSumary(wxWindow* parent);

protected:
	void ConnectPmEvents();
	void DisconnectPmEvents();

	void UpdatePanel(int project_id);

	void OnConnectPmEvents(wxCommandEvent& event);
	void OnProjectLoaded(wxCommandEvent& event);
	void OnWorkRequestChanged(pmEvent<pm::WorkRequest>& event);
	void OnCostChanged(pmEvent<pm::Cost>& event);
	void OnTaskChanged(pmEvent<pm::Task>& event);
};

#endif // PM_PANEL_SUMARY_H_INCLUDED
